<?php
namespace app\components;

use yii\base\Widget;
use common\models\BaseType;
use app\models\Commodity;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of CateDropList
 *
 * @author Administrator
 */
class CateDropListWidget extends Widget{
    //put your code here
    public function run()
    {   
        $cate= BaseType::getTypes();
        $cate1= BaseType::getType();
        $brand = Commodity::SelBaseBrands();
        return $this->render('CateDropList',['cate'=>$cate,'cate1'=>$cate1,'brand'=>$brand]);
        
    }
}
